package com.example.stars_project_android.index;

import android.os.Bundle;
import android.os.PersistableBundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.example.stars_project_android.R;
import com.hyphenate.chat.EMMessage;
import com.hyphenate.easeui.modules.chat.EaseChatFragment;
import com.hyphenate.easeui.widget.EaseTitleBar;

/**
 * 私聊界面
 */
public class SelfChat extends AppCompatActivity {

    EMMessage emMessage;
    EditText editText ;   //聊天编辑文字输入框；
    Button btnSend;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_chat_self);


        EaseChatFragment chatFragment = new EaseChatFragment();
        chatFragment.setArguments(getIntent().getExtras());
        getSupportFragmentManager().beginTransaction().add(R.id.ec_layout_container, chatFragment).commit();
        EaseTitleBar titleBarMessage = findViewById(R.id.title_bar);
        //设置标题
        titleBarMessage.setTitle("刘卓然");
        //设置标题位置
        titleBarMessage.setTitlePosition(EaseTitleBar.TitlePosition.Center);

    }
}
